#include "aboutwid.h"
#include <QVBoxLayout>
#include <QFont>

AboutWid::AboutWid(QWidget *parent) : QWidget(parent)
{
    this->setWindowTitle("版权声明");
    resize(400,300);
    this->titleLab = new QLabel("版权声明！",this);
    this->textLab = new QLabel(this);
    this->textLab->setText("    开发团队：武志祥、马越、葛万存、徐一明。"
                           "未经开发团队的明确许可，任何组织或人不得非法使用本软件！！本软件最终解释权归开发团队所有！");
    QVBoxLayout *layout = new QVBoxLayout(this);
    this->textLab->resize(400,100);
    this->textLab->resize(400,200);
    this->textLab->setMaximumWidth(400);

    QFont font("楷体",16);
    QFont fontDesc("楷体",12);
    this->textLab->setWordWrap(true);
    this->textLab->setAlignment(Qt::AlignTop);
    this->textLab->setFont(fontDesc);
    this->titleLab->setMaximumHeight(height()*0.2);
    this->titleLab->setAlignment(Qt::AlignCenter);
    this->titleLab->setFont(font);

    layout->addWidget(titleLab);
    layout->addWidget(textLab);
}
